<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>朝闻天下前台</title>
    <link rel="icon" href="/zwtx/public/images/tx.ico" type="image/x-icon" style="width: 50px;height: 50px"/>
    
<link rel="stylesheet" href="/zwtx/Public/assets_h/stylesheets/bootstrap.min.css" media="all" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="/zwtx/Public/assets_h/stylesheets/font-awesome.css" media="all" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="/zwtx/Public/assets_h/stylesheets/se7en-font.css" media="all" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="/zwtx/Public/assets_h/stylesheets/style.css" media="all" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="/zwtx/Public/assets_h/stylesheets/theme.css" media="all" rel="stylesheet" type="text/css" />



<script src="/zwtx/Public/assets_h/javascripts/jquery.min.js" type="text/javascript"></script>
<script src="/zwtx/Public/assets_h/javascripts/jquery-ui.js" type="text/javascript"></script>
<script src="/zwtx/Public/assets_h/javascripts/bootstrap.min.js" type="text/javascript"></script>
<script src="/zwtx/Public/assets_h/javascripts/modernizr.custom.js" type="text/javascript"></script>
<script src="/zwtx/Public/assets_h/javascripts/main.js" type="text/javascript"></script>





    <link href="/zwtx/Public/assets_h/stylesheets/datepicker.css" media="all" rel="stylesheet" type="text/css"/>
    <script src="/zwtx/Public/assets_h/javascripts/jquery.bootstrap.wizard.js" type="text/javascript"></script>
    <script src="/zwtx/Public/assets_h/javascripts/fullcalendar.min.js" type="text/javascript"></script>
    <script src="/zwtx/Public/assets_h/javascripts/jquery.dataTables.min.js" type="text/javascript"></script>
    <script src="/zwtx/Public/assets_h/javascripts/jquery.easy-pie-chart.js" type="text/javascript"></script>
    <script src="/zwtx/Public/assets_h/javascripts/jquery.isotope.min.js" type="text/javascript"></script>
    <script src="/zwtx/Public/assets_h/javascripts/jquery.fancybox.pack.js" type="text/javascript"></script>
    <script src="/zwtx/Public/assets_h/javascripts/select2.js" type="text/javascript"></script>
    <script src="/zwtx/Public/assets_h/javascripts/jquery.inputmask.min.js" type="text/javascript"></script>
    <script src="/zwtx/Public/assets_h/javascripts/jquery.validate.js" type="text/javascript"></script>
    <script src="/zwtx/Public/assets_h/javascripts/bootstrap-fileupload.js" type="text/javascript"></script>
    <script src="/zwtx/Public/assets_h/javascripts/bootstrap-datepicker.js" type="text/javascript"></script>
    <script src="/zwtx/Public/assets_h/javascripts/bootstrap-timepicker.js" type="text/javascript"></script>
    <script src="/zwtx/Public/assets_h/javascripts/daterange-picker.js" type="text/javascript"></script>
    <script src="/zwtx/Public/assets_h/javascripts/date.js" type="text/javascript"></script>
    <script src="/zwtx/Public/assets_h/javascripts/jquery.sparkline.min.js" type="text/javascript"></script>
    <script src="/zwtx/Public/assets_h/javascripts/main.js" type="text/javascript"></script>

    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">

</head>
<body class="no-skin">
<div class="navbar navbar-fixed-top bg-info" style="background-color:#5bc0de">
    <div class="container-fluid top-bar">
        <div class="pull-right">
<?php if(is_array($upic)): $i = 0; $__LIST__ = $upic;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><ul class="nav navbar-nav pull-right">
                <li class="dropdown user hidden-xs"><a data-toggle="dropdown" class="dropdown-toggle" href="#">
                    <img width="34" height="34" src="/zwtx/Public/images/pic/<?php echo ($vo["pic"]); ?>">
                    <b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li><a href="<?php echo U('Home/UserInfo/index');?>">
                            <i class="icon-user"></i>修改个人信息</a>
                        </li>
                        <li><a href="<?php echo U('Home/ChangePassword/index');?>">
                            <i class="icon-gear"></i>修改密码</a>
                        </li>
                        <li><a href="<?php echo U('Home/Personal/fdctindex');?>">
                            <i class="icon-envelope"></i>留言板</a>
                        </li>
                        <li><a href="<?php echo U('Home/Login/index');?>">
                            <i class="icon-signout"></i>退出登录</a>
                        </li>

                    </ul>
                </li>

            </ul><?php endforeach; endif; else: echo "" ;endif; ?>
        </div>

    </div>

</div>


<div id="wrap" style="background-color: #f6fafb;margin-bottom: 60px">
    <div class="container-fluid">

        <div class="col-md-10 col-md-offset-1 " style="margin-bottom: 30px">
            <h2 style="text-align: center;color: #56abe4; margin-bottom: 0px;padding-bottom: 0px;">
                <p class="" style="font-weight:bold;margin-bottom: 10px;margin-top: 10px;font-size: 30px">朝闻天下论坛</p>
            </h2>
            <hr>
        </div>
        <div class="col-md-10  " style="">
            <div class="col-md-12 col-md-offset-1" style="height: 100%">

                <table class="table table-hover" style="height: 80%">
                    <thead >
                    <tr >
                        <th style="text-align: center">序号</th>
                        <th style="text-align: center">类别名</th>
                        <th style="text-align: center">发布时间</th>
                        <th style="text-align: center">发布人</th>
                        <th style="text-align: center">标题</th>
                        <th style="text-align: center">新闻图片</th>
                        <th style="text-align: center">操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
                            <td style="font-size: larger;color: #21e1d8;text-align: center"><?php echo ($vo['code']); ?></td>
                            <td style="color: #21e1d8;text-align: center"><?php echo ($vo['tid']); ?></td>
                            <td style="color: #21e1d8;text-align: center"><?php echo ($vo['publishment']); ?></td>
                            <td style="color: #21e1d8;text-align: center"><?php echo ($vo['username']); ?></td>
                            <td style="color: #21e1d8;text-align: center"><?php echo ($vo['title']); ?></td>
                            <td style="color: #21e1d8;text-align: center">
                                <a href="<?php echo U('Home/About/detaillist');?>?id=<?php echo ($vo['id']); ?>" >
                                    <img src="/zwtx/Public/images/pic/<?php echo ($vo["n_pic"]); ?>" style="border-radius:50% ; width:50px;height: 50px;" alt="空">
                                </a>
                            </td>
                            <td style="color: #21e1d8;text-align: center">
                                    <a href="<?php echo U('Fourm/detail');?>?id=<?php echo ($vo['id']); ?>">
                                        <img src="/zwtx/Public/images/up.png" width="40" height="40"></a>
                                    </a>
                            </td>

                        </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                    </tbody>
                </table>
                <div class="row">
                    <div class="col-md-6"></div>
                    <div class="col-md-4">
                        <a href="<?php echo U('Personal/index');?>" >
                            <img src="/zwtx/Public/images/back.png" width="40" height="40" style="margin-top: 2%">
                        </a>
                    </div>
                    <div class="col-md-1">
                        <a onclick="pageScroll()">
                            <img src="/zwtx/Public/images/gotop.png" width="40" height="40" style="text-align: center;margin-top: 15%">
                        </a>
                        <script>
                            function pageScroll(){
                                window.scrollBy(0,-100);
                                scrolldelay = setTimeout('pageScroll()',100);
                                var sTop=document.documentElement.scrollTop+document.body.scrollTop;
                                if(sTop==0) clearTimeout(scrolldelay);
                            }
                        </script>
                    </div>
                </div>

            </div>
        </div>

</div>
</div>
</body>
</html>